﻿using Core.Domain.Stores;
using System.Collections.Generic;

namespace Services.Stores
{
    /// <summary>
    /// 站点服务
    /// </summary>
    public partial interface IStoreService
    {
        /// <summary>
        /// 删除站点
        /// </summary>
        /// <param name="store"></param>
        void DeleteStore(Store store);

        /// <summary>
        /// 获取所有站点
        /// </summary>
        /// <returns></returns>
        IList<Store> GetAllStores();

        /// <summary>
        /// 根据主键获取站点
        /// </summary>
        /// <param name="storeId"></param>
        /// <returns></returns>
        Store GetStoreById(int storeId);

        /// <summary>
        /// 插入站点
        /// </summary>
        /// <param name="store"></param>
        void InsertStore(Store store);

        /// <summary>
        /// 更新站点
        /// </summary>
        /// <param name="store"></param>
        void UpdateStore(Store store);
    }
}
